//性别标识:1.男2.女 到底什么代表什么
enum GunType {
  M416 = 1,
  AK47 = 2,
  Goza = 3,
}
//编译器自动添加数值
enum GunType2 {
  M416, //0
  AK47, //1
  Goza, //2
}
enum Gender {
  Boy = 1,
  Girl = 2,
  Unknown = 3,
}
let userSex: Gender = Gender.Boy;
if (userSex == Gender.Boy) {
  console.log(userSex);
} else {
  console.log(userSex);
}
